function ajx(url, method1) {
	var cnt = 1;
	var loc = 0;
	for ( var i = 0; i < url.length; i++) {
		if (url.charAt(i) == '&') {
			cnt++;
			if (cnt < 2)
				loc = i;
		}
		if (url.charAt(i) == '=') {
			cnt--;
			loc = i;
		}
		if (cnt == 2) {
			url = url.substring(0, loc)
					+ (url.substring(loc, i)).replace('&', '%26')
					+ url.substring(i);
			loc = i;
		}
	}
	var activeXObject = getXmlHttpObject1();
	// var activeXObject = new ActiveXObject("Microsoft.XMLHTTP") ;
	if (method1 != null && method1 != '') {
		activeXObject.open("POST", url, true);
		activeXObject.onreadystatechange = function() {
			if (activeXObject.readyState == 4) {
				if (activeXObject.status == 200) {
					try {
						eval(method1 + "( activeXObject.responseText ) ");
					} catch (e1) {
						window.status = "Problem delegating method : '"
								+ method1 + "';";
					}
				} else {
					window.status = "Problem retrieving data:"
							+ activeXObject.statusText;
				}
			}
		};
		activeXObject.send(null);
		return null;
	} else {
		activeXObject.open("POST", url, false);
		activeXObject.send(null);
		return activeXObject.responseText;
	}
}

function getXmlHttpObject1() {

	var xmlHttp = null;
	try {
		// Firefox, Opera 8.0+, Safari
		xmlHttp = new XMLHttpRequest();
	} catch (e) {
		// Internet Explorer
		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	return xmlHttp;
}